require 'rubygems'
require 'rack'

class Server

  def call(env)
    req = Rack::Request.new(env)
    puts req.inspect
    puts req.params.inspect
    [
        200,                                          # Status
        {'Content-Type' => 'text/html'},              # Headers
        ["xxxxxxxx xx Hello  NEW xx xxxxxxxx"]                     # Body
    ]
  end
end

Rack::Handler::WEBrick.run Server.new, :Port => 3005